home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Pane / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  4KB  |  156 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Other    \
  4.             o.Pane    \
  5.  
  6.  
  7. LibName        =    Pane
  8.  
  9.  
  10.  
  11. # Template makefile to make all .o files
  12. # and the SDLS Stubs file for DeskLib
  13. # sublibraries.
  14. # Julian Smith 16 Mar 1995.
  15.  
  16.  
  17. # The macro $(ObjectFiles) should be set at the 
  18. # start of this file, to be a space-separated
  19. # list of object files.
  20. # This is done by 'Makatic'.
  21.  
  22.  
  23. # The macro $(LibName) should also be set at the 
  24. # start of this file, to be the name of the 
  25. # DeskLib sublibrary.
  26. # This is done by 'Makatic'.
  27.  
  28. # Compiler and linker flags, These can be anything. 
  29. # All flags required by Straylight (eg CC -zM and
  30. # Link -rmf) are included in the macros $(CC) and
  31. # $(LINK).
  32. #
  33. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  34. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  35.  
  36.  
  37. # Macros for commands, including the Straylight
  38. # tool 'cdll'. Note that DRLink doesn't seem to
  39. # work with the SDLS.
  40. #
  41. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  42. ASM        =    ObjAsm $(ASMFlags)
  43. CDLL        =    cdll
  44. LINK        =    link
  45. AS        =    as -dde -throwback
  46.  
  47.  
  48. # filename of DLL Stubs aof file. This is linked with client apps.
  49. DLL_Stubs    =    Stubs
  50.  
  51.  
  52. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  53. #
  54. # DLL_Def:        Standard definition file as per SDLS docs.
  55. # DLL_OtherStubsSource    Assembler source to be partially linked into
  56. #            the final stubs file. This will force linking
  57. #            in of stubs from any other DLLs used by this
  58. #            library when a client application is built.
  59. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  60. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  61. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  62. #            for all DeskLib DLLs used by this library, and
  63. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  64. #
  65. DLL_Def            =    ^.DLLDef
  66. DLL_OtherStubsSource    =    ^.OtherStubs
  67.  
  68. DLL_PlainStubs        =    PlainStubs
  69. DLL_OtherStubsObject    =    OSObj
  70.  
  71. # -------------------------------------------------------
  72. # Everything below here should probably not be changed...
  73. # -------------------------------------------------------
  74.  
  75.  
  76.  
  77. # Now all the rules...
  78.  
  79.  
  80. # Here's the two things we want to make...
  81. #
  82. All:    $(DLL_Stubs) $(ObjectFiles)
  83.  
  84. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  85.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  86.  
  87. $(DLL_PlainStubs):    $(DLL_Def)
  88.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  89.  
  90.  
  91. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  92. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  93.  
  94. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  95.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  96.  
  97.  
  98. $(DLL_Def):    
  99.     | Warning: No DLL definition file exists.
  100.     | Creating a default DLL definition file: $(DLL_Def)
  101.     | This will have to be altered by hand.
  102.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  103.  
  104.  
  105.  
  106. # Rule for compiling C source code for a Straylight dynamically-linked library.
  107.  
  108. VPATH = @.^
  109.  
  110. .SUFFIXES:    .o .c .s
  111.  
  112. .c.o:
  113.     $(CC) -o $@ $<
  114.  
  115. .s.o:
  116.     $(ASM) $(ASMFlags) -from $< -to $@
  117.  
  118.  
  119.  
  120. # Dynamic dependencies:
  121. o.Other:    ^.c.Other
  122. o.Other:    C:h.stdlib
  123. o.Other:    DeskLib:h.Pane
  124. o.Other:    DeskLib:h.Wimp
  125. o.Other:    DeskLib:h.Core
  126. o.Other:    C:h.stddef
  127. o.Other:    C:DLLLib.h.dll
  128. o.Other:    C:h.kernel
  129. o.Other:    DeskLib:h.Window
  130. o.Other:    DeskLib:h.WimpSWIs
  131. o.Other:    DeskLib:h.Pointer
  132. o.Other:    DeskLib:h.Core
  133. o.Other:    DeskLib:h.Icon
  134. o.Other:    DeskLib:h.DragASpr
  135. o.Other:    DeskLib:h.Window
  136. o.Other:    DeskLib:h.Coord
  137. o.Other:    ^.h.PaneDefs
  138. o.Pane:    ^.c.Pane
  139. o.Pane:    C:h.stdlib
  140. o.Pane:    DeskLib:h.Pane
  141. o.Pane:    DeskLib:h.Wimp
  142. o.Pane:    DeskLib:h.Core
  143. o.Pane:    C:h.stddef
  144. o.Pane:    C:DLLLib.h.dll
  145. o.Pane:    C:h.kernel
  146. o.Pane:    DeskLib:h.Window
  147. o.Pane:    DeskLib:h.WimpSWIs
  148. o.Pane:    DeskLib:h.Pointer
  149. o.Pane:    DeskLib:h.Core
  150. o.Pane:    DeskLib:h.Icon
  151. o.Pane:    DeskLib:h.DragASpr
  152. o.Pane:    DeskLib:h.Window
  153. o.Pane:    DeskLib:h.Coord
  154. o.Pane:    ^.h.PaneDefs
  155.